<template>
  <div >
    <el-container>
<!--头部开始********************************************************-->
      <el-header height="150">
        <!--页眉开始************************-->
        <div style="font-size: 12px;
            margin: -13px -30px 0px -30px;
            background-color: #333;
            active-text-color:#fff">
                <span style="margin-left:200px;line-height: 40px;">
                    <a href="">玺玛特首页</a><el-divider direction="vertical"></el-divider>
                    <a href="">尔玉入口</a><el-divider direction="vertical"></el-divider>
                    <a href="">商家入驻</a><el-divider direction="vertical"></el-divider>
                    <a href="">社会招聘</a><el-divider direction="vertical"></el-divider>
                    <a href="">校园招聘</a><el-divider direction="vertical"></el-divider>
                    <a href="">帮助</a>
                    <a href="">全门类电子产品智造商,专注于科技服务生活</a>
                    <a href="" style="padding-left: 260px;">注册</a>
                    <a href="" style="padding-left: 10px;">登录</a>
                </span>
        </div>
        <!--页眉结束************************-->
      </el-header>
<!--头部结束********************************************************-->

<!--主体开始********************************************************-->
      <el-main  style="background-color: #feba2e;
           margin: 0 auto;
           width: 100%;
          /*cover是专门用来设置整个背景封面的*/
          text-align: center;">
        <div>
          <h1>请先完善您的个人信息</h1>
          <el-card style="width: 90%;
                 margin: 0 auto;
                 background-color: rgba(255,255,255,0.3);
                 border-radius: 10px">
            <!--用户详细信息表单开始********************************************************-->
                  <!--label-width设置每个表单项 文本标签的宽度-->
            <el-form style="width: 600px;margin: 0 auto" label-width="100px">
              <el-form-item label="用户头像">
                <el-input type="text" placeholder="请上传图片 "></el-input>
              </el-form-item>
              <el-form-item label="用户名">
                <el-input type="text" placeholder="请输入6-13位数字、字母或'_' "></el-input>
              </el-form-item>
              <el-form-item label="密码">
                <el-input type="password" placeholder="请输入6-13位数字、字母，区分大小写" ></el-input>
              </el-form-item>
              <el-form-item label="昵称">
                <el-input type="nick" placeholder="请输入6-13位数字、字母，区分大小写" ></el-input>
              </el-form-item>
              <el-form-item label="性别" prop="resource">
                <el-radio-group v-model="ruleForm.gender">
                  <el-radio label="先生"></el-radio>
                  <el-radio label="女士"></el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="手机号">
                <el-input type="phone" placeholder="请输入11位数字" ></el-input>
              </el-form-item>
              <el-form-item label="出生日期" required>
                <el-col>
                  <el-form-item prop="date1">
                    <el-date-picker type="date" placeholder="选择日期" v-model="ruleForm.date1"
                                    style="width: 100%;"></el-date-picker>
                  </el-form-item>
                </el-col>
              </el-form-item>
              <el-form-item label="收货地址">
                <select name="" id="sheng" style="width: 150px;height: 30px;">
                  <option value="">---请选择---</option>
                </select>
                <select name="" id="shi" style="width: 150px;height: 30px;">
                  <option value="">---请选择---</option>
                </select>
                <select name="" id="qu" style="width: 150px;height: 30px;">
                  <option value="">---请选择---</option>
                </select>
              </el-form-item>
              <el-form-item label="详细地址">
                <el-input type="address" placeholder="街道、社区和门牌号" ></el-input>
              </el-form-item>
              <el-form-item>
                <el-button style="position: relative;right: 30px" type="primary">提交</el-button>
              </el-form-item>
            </el-form>
            <!--用户详细信息表单结束********************************************************-->
          </el-card>
        </div>
      </el-main>
<!--主体结束********************************************************-->
    </el-container>
  </div>
</template>

<style>
a{
  text-decoration: none;
  color: #3a8ee6;
}

</style>

<script>
export default {
  data() {
    return {
      ruleForm: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      rules: {
        name: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
          { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
        ],
        region: [
          { required: true, message: '请选择活动区域', trigger: 'change' }
        ],
        date1: [
          { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
        ],
        date2: [
          { type: 'date', required: true, message: '请选择时间', trigger: 'change' }
        ],
        type: [
          { type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }
        ],
        resource: [
          { required: true, message: '请选择活动资源', trigger: 'change' }
        ],
        desc: [
          { required: true, message: '请填写活动形式', trigger: 'blur' }
        ]
      }
    };
  },
  methods: {
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          alert('submit!');
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    }
  }
}
</script>
